package com.owc.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Author xiaom
 * @Date 2020/2/26 17:00
 * @Version 1.0.0
 * @Description <>
 **/
@Data
@ApiModel("订单信息")
public class OrderDTO implements Serializable {

    @ApiModelProperty("主键ID")
    private Long id;

    @ApiModelProperty("订单ID")
    private Long orderId;

    /**
     * 产品名称
     */
    @ApiModelProperty("购买的产品名称")
    private String productName;

    /**
     * 购买时间
     */
    @ApiModelProperty("购买时间")
    private String buyTime;


    /**
     * 购买币种名称
     */
    @ApiModelProperty("购买的币种名称")
    private String tokenName;

    /**
     * 购买金额
     */
    @ApiModelProperty("投资总额")
    private BigDecimal amount;
    /**
     * 状态 10(已生效) 20(已逾期) 30(已完成)
     */
    @ApiModelProperty("状态 10(已生效) 20(已逾期) 30(已完成)")
    private Integer status;

    @ApiModelProperty("持仓收益")
    private BigDecimal income;

    @ApiModelProperty("昨日收益")
    private BigDecimal yesterdayIncome = BigDecimal.ZERO;

}
